package com.ruoyi.hiscomm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.hiscomm.domain.DeptDictDo;
import com.ruoyi.hiscomm.domain.DrugBasicInfoDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName DrugBasicInfoDoMapper
 * @Author samula
 * @Descripe product by com.doctcloud
 * @Data 2025-09-28 4:57
 **/
@Mapper
public interface DrugBasicInfoDoMapper extends BaseMapper<DrugBasicInfoDo> {
    List<DrugBasicInfoDo> selectDrugBasicInfos(DrugBasicInfoDo drug);
    int insertDrugBasicInfo(DrugBasicInfoDo drug);
    int updateDrugBasicInfo(DrugBasicInfoDo drug);
    int deleteDrugBasicInfo(String drugStdCode);
    List<DrugBasicInfoDo> selectAll();

    DrugBasicInfoDo selectByStd(String std);
    List<DrugBasicInfoDo> selectByCode(String code);
    List<DrugBasicInfoDo> selectByName(String drugName);
    DrugBasicInfoDo selectBySubPrimaryKey(
            @Param("drugCode") String drugCode,
            @Param("drugSpec") String drugSpec,
            @Param("firmId") String firmId
            );
}
